package org.example.cloud.api;

import org.example.cloud.util.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 宋孟林
 * @description
 * @date: 2025/4/12 7:25
 */
@FeignClient(value = "seata-storage-service")
public interface StorageFeignApi {
    @PostMapping("/storage/decrease")
    ResultData<?> decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);
}
